.grid {
  display: flex;
  flex-wrap: wrap;
  width: 400px; /* because each image is 100x100 and you got 12 matches */
  height: 300px; /* beacuse each image is 100x100 and you got 12 matches */
}
